﻿using System;
using System.Collections.Generic;
using System.Text;

namespace 命令模式
{
    //命令请求方
    class Invoker
    {
        private Command _command;

        public void SetCommand(Command command)
        {
            _command = command;
        }

        public void ExecuteCommand()
        {
            _command.Execute();
        }
    }
}
